home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Amiga Format CD 49
/
Amiga Format CD49 (2000-01-17)(Future Publishing)(GB)(Track 1 of 3)[!][issue 2000-02].iso
/
-serious-
/
graphics
/
amicad
/
arexx
/
souligner.amicad
< prev
next >
Wrap
Text File
|
1999-12-06
|
828b
|
40 lines
/* Soulignement d'un ou plusieurs textes */
/* $VER: Souligner 1.00 (© R.Florac, 17 septembre 1998 */
options results
signal on error
signal on syntax
objets=0
'SAVEALL(-1):FIRSTSEL'; i=result
do while i>0
objets = objets + souligner(i)
'NEXTSEL('i')'; i=result
end
if objets=0 then do
'PICKOBJ("Sélectionnez le texte à souligner")'
i=result
if i>0 then call souligner(i)
end
exit
souligner: procedure
parse arg i
'TYPE(O__='i')'; type=result
if type = 4 | type = 5 | type = 6 then do
'DRAW(COL(O__),LINE(O__)+1,COL(O__)+WIDTH(O__)+1,LINE(O__)+1)'
return 1
end
return 0
/* Traitement des erreurs, interruption du programme */
syntax:
erreur=RC
'MESSAGE("Erreur de syntaxe"+CHR(10)+"en ligne 'SIGL'"+CHR(10)+"'errortext(erreur)'")'
exit
error:
'MESSAGE("Erreur en ligne 'SIGL'")'
exit